package com.yanqu.road.server.gameplayer.module.cricket.model;

import com.yanqu.road.entity.config.skill.SkillInfo;

import java.util.List;

public class SkillEffect {

    public static SkillEffect getInstance(SkillInfo skillInfo) {
        return new SkillEffect(skillInfo);
    }

    private SkillEffect(SkillInfo skillInfo) {
        this.skillId = skillInfo.getId();
        this.skillType = skillInfo.getType();
        List<Integer> paramList = skillInfo.getParamList();
        this.p1 = paramList.get(0);
        this.p2 = paramList.get(1);
        this.p3 = paramList.get(2);
        this.p4 = paramList.get(3);
    }

    private int skillId;
    private int skillType;

    private int p1;
    private int p2;
    private int p3;
    private int p4;

    public int getSkillId() {
        return skillId;
    }

    public int getSkillType() {
        return skillType;
    }

    public int getP1() {
        return p1;
    }

    public int getP2() {
        return p2;
    }

    public int getP3() {
        return p3;
    }

    public int getP4() {
        return p4;
    }

    public void setP1(int p1) {
        this.p1 = p1;
    }
}
